﻿<%@ Page Language="VB" MasterPageFile="~/Paginas/MPSantander.master" AutoEventWireup="false" CodeFile="Inicio.aspx.vb" Inherits="Pagina_Inicio"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" language="javascript">
        function CambiarNoticia(idnoticia){
            if (idnoticia==2){
                var notID=document.getElementById('ctl00_ContentPlaceHolder1_hdn2').value;
                window.location.href='Inicio.aspx?noticiaID=' + notID;
            }
            if (idnoticia==3){
                var notID=document.getElementById('ctl00_ContentPlaceHolder1_hdn3').value;
                window.location.href='Inicio.aspx?noticiaID=' + notID;
            }
        }
    </script>
    <asp:HiddenField ID="hdn2" runat="server" />
    <asp:HiddenField ID="hdn3" runat="server" />
    <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;" width="100%">
        <tr>
            <td height="350px" width="600px">
                <table cellpadding="0" border="0" cellspacing="0" style="border-collapse:collapse;">
                    <tr>
                        <td class="TituloNoticia">
                            <asp:Label ID="lblPriTitulo" runat="server"/>
                        </td>
                        <td width="400px" height="350px" rowspan="3" class="ImgNoticia">
                            <asp:Literal ID="lblLit" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="BajadaNoticia">
                            <asp:Label ID="lblPriBajada" runat="server"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="CuerpoNoticia">
                            <asp:Label ID="lblPriCuerpo" runat="server"/>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="200px" valign="top" height="350px">
                <table border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;" width="100%">
                    <tr>
                        <td height="10px"></td>
                    </tr>
                    <tr>
                        <td align="center" class="BajadaNoticia">Noticias Recientes</td>
                    </tr>                            
                    <tr>
                        <td valign="bottom">
                            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
                                <tr>
                                    <td align="left" valign="top"  width="100%" class="NoticiaSecundaria">
                                        <a href="#" onclick="CambiarNoticia(2);">
                                            <asp:Literal ID="litNoticia2" runat="server"/>
                                        </a>
                                    </td>
                                </tr>
                                <tr>
                                    <td><hr /></td>
                                </tr>
                                <tr>
                                    <td align="left" valign="baseline" width="100%" class="NoticiaSecundaria">
                                        <a href="#" onclick="CambiarNoticia(3);">
                                            <asp:Literal ID="litNoticia3" runat="server"/>
                                        </a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

